from django.urls import path
from .views import QuestionList, QuestionUpdate, QuestionCreate, QuestionDelete, QuestionDetail, QuestionImport, \
    QuestionsExport, GetQuestions

urlpatterns = [
    path('', QuestionList.as_view(), name='question-list'),  # 获取所有试题
    path('update/', QuestionUpdate.as_view(), name='question-update'),  # 获取单个试题、更新
    path('delete/', QuestionDelete.as_view(), name='question-delete'),  # 删除
    path('create/', QuestionCreate.as_view(), name='question-create'),  # 创建试题
    path('detail/', QuestionDetail.as_view(), name='question-detail'),  # 根据id查询
    path('import/', QuestionImport.as_view(), name='question-import'),  # 批量导入试题
    path('export/', QuestionsExport.as_view(), name='question-export'),  # 批量导出试题
    path('getQuestions/', GetQuestions.as_view(), name='getQuestions'),  # 获取试题列表
]
